package com.cloud.school.app.service;

import com.cloud.school.app.model.QuestionModel;
import com.cloud.school.app.util.Pager;

/**
 * @ClassName Question
 * @Description TODO
 * @Author 36297
 * @Date 2018/12/14 0:49
 * @Version 1.0
 */
public interface QuestionService {
    Pager<QuestionModel> selectByUid(Long Uid, int pNo);

    Pager<QuestionModel> selectAll(int pNo);

    Pager<QuestionModel> selectDetailByUid(Long Uid, int pNo);

    Pager<QuestionModel> selectAllDetail(int pNo);

    QuestionModel selectById(Long questionId);

    QuestionModel selectDetailById(Long questionId);

    QuestionModel selectDetailWithoutAnswerFormatById(Long questionId);

    boolean save(QuestionModel questionModel);

    boolean deleteById(Long questionId);
}
